home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 3.iso / dist / fw_qt3.idb / usr / freeware / Qt / examples / fileiconview / mainwindow.h.z / mainwindow.h
Encoding:
C/C++ Source or Header  |  2002-04-08  |  1.3 KB  |  62 lines

  1. /****************************************************************************
  2. ** $Id:  qt/mainwindow.h   3.0.3   edited Oct 12 12:18 $
  3. **
  4. ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of an example program for Qt.  This example
  7. ** program may be used, distributed and modified without limitation.
  8. **
  9. *****************************************************************************/
  10.  
  11. #ifndef MAINWIN_H
  12. #define MAINWIN_H
  13.  
  14. #include <qmainwindow.h>
  15.  
  16. class QtFileIconView;
  17. class DirectoryView;
  18. class QProgressBar;
  19. class QLabel;
  20. class QComboBox;
  21. class QToolButton;
  22.  
  23. class FileMainWindow : public QMainWindow
  24. {
  25.     Q_OBJECT
  26.  
  27. public:
  28.     FileMainWindow();
  29.  
  30.     QtFileIconView *fileView() { return fileview; }
  31.     DirectoryView *dirList() { return dirlist; }
  32.  
  33.     void show();
  34.  
  35. protected:
  36.     void setup();
  37.     void setPathCombo();
  38.  
  39.     QtFileIconView *fileview;
  40.     DirectoryView *dirlist;
  41.     QProgressBar *progress;
  42.     QLabel *label;
  43.     QComboBox *pathCombo;
  44.     QToolButton *upButton, *mkdirButton;
  45.  
  46. protected slots:
  47.     void directoryChanged( const QString & );
  48.     void slotStartReadDir( int dirs );
  49.     void slotReadNextDir();
  50.     void slotReadDirDone();
  51.     void cdUp();
  52.     void newFolder();
  53.     void changePath( const QString &path );
  54.     void enableUp();
  55.     void disableUp();
  56.     void enableMkdir();
  57.     void disableMkdir();
  58.  
  59. };
  60.  
  61. #endif
  62.